

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/fluid.png">
  <link rel="icon" href="/img/fluid.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="一又四分之一">
  <meta name="keywords" content="">
  
    <meta name="description" content="1.   oj数据库名字解析1. compileinfo编译信息存储的地方，例如 报错： 1234567891011121314Main.c: In function &#x27;main&#x27;:Main.c:11:9: error: &#x27;b&#x27; undeclared (first use in this function)   11 |         b&#x3D;b&#x2F;2;">
<meta property="og:type" content="article">
<meta property="og:title" content="oj数据库名字总结">
<meta property="og:url" content="https://one-and-one-fourth.gitee.io/2024/02/03/oj%E6%95%B0%E6%8D%AE%E5%BA%93%E5%90%8D%E5%AD%97%E6%80%BB%E7%BB%93/index.html">
<meta property="og:site_name" content="one-and-one-fourth">
<meta property="og:description" content="1.   oj数据库名字解析1. compileinfo编译信息存储的地方，例如 报错： 1234567891011121314Main.c: In function &#x27;main&#x27;:Main.c:11:9: error: &#x27;b&#x27; undeclared (first use in this function)   11 |         b&#x3D;b&#x2F;2;">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2024-02-03T13:16:43.000Z">
<meta property="article:modified_time" content="2024-02-03T13:19:23.329Z">
<meta property="article:author" content="一又四分之一">
<meta property="article:tag" content="mysql">
<meta property="article:tag" content="sql">
<meta name="twitter:card" content="summary_large_image">
  
  
    <meta name="referrer" content="no-referrer-when-downgrade">
  
  
  <title>oj数据库名字总结 - one-and-one-fourth</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/css/highlight-dark.css" />
  




  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"one-and-one-fourth.gitee.io","root":"/","version":"1.9.7","typing":{"enable":true,"typeSpeed":70,"cursorChar":"","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"follow_dnt":true,"baidu":null,"google":{"measurement_id":null},"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml","include_content_in_search":true};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
  

  

  
    <!-- Google tag (gtag.js) -->
    <script async>
      if (!Fluid.ctx.dnt) {
        Fluid.utils.createScript("https://www.googletagmanager.com/gtag/js?id=", function() {
          window.dataLayer = window.dataLayer || [];
          function gtag() {
            dataLayer.push(arguments);
          }
          gtag('js', new Date());
          gtag('config', '');
        });
      }
    </script>
  

  

  

  

  



  
<meta name="generator" content="Hexo 7.1.1"></head>


<body>
  

  <header>
    

<div class="header-inner" style="height: 70vh;">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>one-and-one-fourth</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/" target="_self">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/" target="_self">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/" target="_self">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/" target="_self">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/" target="_self">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

  

<div id="banner" class="banner" parallax=true
     style="background: url('/img/default.png') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          
            <span id="subtitle" data-typed-text="oj数据库名字总结"></span>
          
        </div>

        
          
  <div class="mt-3">
    
    
      <span class="post-meta">
        <i class="iconfont icon-date-fill" aria-hidden="true"></i>
        <time datetime="2024-02-03 21:16" pubdate>
          2024年2月3日 晚上
        </time>
      </span>
    
  </div>

  <div class="mt-1">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-chart"></i>
        
          937 字
        
      </span>
    

    
      <span class="post-meta mr-2">
        <i class="iconfont icon-clock-fill"></i>
        
        
        
          8 分钟
        
      </span>
    

    
    
  </div>


        
      </div>

      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      

    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <h1 id="seo-header">oj数据库名字总结</h1>
            
            
              <div class="markdown-body">
                
                <h1 id="1-oj数据库名字解析"><a href="#1-oj数据库名字解析" class="headerlink" title="1.   oj数据库名字解析"></a>1.   oj数据库名字解析</h1><h2 id="1-compileinfo"><a href="#1-compileinfo" class="headerlink" title="1. compileinfo"></a>1. compileinfo</h2><p><strong>编译信息</strong>存储的地方，例如</p>
<p>报错：</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><code class="hljs c">Main.c: In function <span class="hljs-string">&#x27;main&#x27;</span>:<br>Main.c:<span class="hljs-number">11</span>:<span class="hljs-number">9</span>: error: <span class="hljs-string">&#x27;b&#x27;</span> undeclared (first use in this function)<br>   <span class="hljs-number">11</span> |         b=b/<span class="hljs-number">2</span>;<br>      |         ^<br>Main.c:<span class="hljs-number">11</span>:<span class="hljs-number">9</span>: note: each undeclared identifier is reported only once <span class="hljs-keyword">for</span> each function it appears in<br>Main.c:<span class="hljs-number">19</span>:<span class="hljs-number">17</span>: error: expected <span class="hljs-string">&#x27;;&#x27;</span> before <span class="hljs-string">&#x27;return&#x27;</span><br>   <span class="hljs-number">19</span> |     <span class="hljs-built_in">printf</span>(<span class="hljs-string">&quot;\n&quot;</span>)<br>      |                 ^<br>      |                 ;<br>   <span class="hljs-number">20</span> |     <span class="hljs-keyword">return</span> <span class="hljs-number">0</span>;<br>      |     ~~~~~~       <br>Main.c:<span class="hljs-number">5</span>:<span class="hljs-number">5</span>: warning: ignoring <span class="hljs-keyword">return</span> value of <span class="hljs-string">&#x27;scanf&#x27;</span>, declared with attribute warn_unused_result [-Wunused-result]<br>    <span class="hljs-number">5</span> |     <span class="hljs-built_in">scanf</span>(<span class="hljs-string">&quot;%d&quot;</span>,&amp;n);<br>      |     ^~~~~~~~~~~~~~<br></code></pre></td></tr></table></figure>



<p>这种信息都存在这里</p>
<h2 id="2-contest"><a href="#2-contest" class="headerlink" title="2.  contest"></a>2.  contest</h2><p><strong>比赛目录</strong>的存储的地方</p>
<p>里面的信息都是比赛当时的记录，比赛结束后的题目记录不存在</p>
<h2 id="3-loginlog"><a href="#3-loginlog" class="headerlink" title="3. loginlog"></a>3. loginlog</h2><p><strong>登录日志</strong>即用户登录时间、IP的记录</p>
<h2 id="4-news"><a href="#4-news" class="headerlink" title="4. news"></a>4. news</h2><p><strong>前端新闻</strong>的存储记录</p>
<h2 id="5-online"><a href="#5-online" class="headerlink" title="5. online"></a>5. online</h2><h2 id="6-privilege"><a href="#6-privilege" class="headerlink" title="6. privilege"></a>6. privilege</h2><p><strong>用户权限</strong>存储的地方</p>
<h2 id="7-problem"><a href="#7-problem" class="headerlink" title="7. problem"></a>7. problem</h2><p><strong>题目的创建时间</strong>的储存处</p>
<h2 id="8-runmtimeinfo"><a href="#8-runmtimeinfo" class="headerlink" title="8. runmtimeinfo"></a>8. runmtimeinfo</h2><p><strong>运行时间信息</strong></p>
<p>例如：类似这种信息的存储</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><code class="hljs c">答案错误的样例：<br>    ========[test1.out]=========<br>Expected						      |	Yours<br>This is not a quadratic equation			      |	-nan -inf<br><br>==============================<br>time_space_table:<br>/<span class="hljs-number">1023</span>/sample.in:AC mem=<span class="hljs-number">2184</span>k time=<span class="hljs-number">4</span>ms<br>/<span class="hljs-number">1023</span>/sample1.in:AC mem=<span class="hljs-number">2184</span>k time=<span class="hljs-number">4</span>ms<br>/<span class="hljs-number">1023</span>/sc.in:AC mem=<span class="hljs-number">2184</span>k time=<span class="hljs-number">4</span>ms<br>/<span class="hljs-number">1023</span>/test0.in:AC mem=<span class="hljs-number">2184</span>k time=<span class="hljs-number">5</span>ms<br>/<span class="hljs-number">1023</span>/test1.in:WA mem=<span class="hljs-number">2184</span>k time=<span class="hljs-number">4</span>ms<br>/<span class="hljs-number">1023</span>/test2.in:AC mem=<span class="hljs-number">2184</span>k time=<span class="hljs-number">5</span>ms<br><br>    答案正确的样例：<br>    time_space_table:<br>/<span class="hljs-number">1043</span>/sample.in:AC mem=<span class="hljs-number">1200</span>k time=<span class="hljs-number">4</span>ms<br>/<span class="hljs-number">1043</span>/test0.in:AC mem=<span class="hljs-number">1200</span>k time=<span class="hljs-number">5</span>ms<br>/<span class="hljs-number">1043</span>/test1.in:AC mem=<span class="hljs-number">1200</span>k time=<span class="hljs-number">4</span>ms<br>/<span class="hljs-number">1043</span>/test2.in:AC mem=<span class="hljs-number">1200</span>k time=<span class="hljs-number">4</span>ms<br></code></pre></td></tr></table></figure>



<h2 id="9-solution"><a href="#9-solution" class="headerlink" title="9. solution"></a>9. solution</h2><p><strong>用户的提交信息</strong>的存储</p>
<h2 id="10-source-code-和-source-code-user"><a href="#10-source-code-和-source-code-user" class="headerlink" title="10. source_code 和  source_code_user"></a>10. source_code 和  source_code_user</h2><p><strong>提交的源代码</strong>的存储</p>
<p>可能两者有区别！！！但是我不知道 &gt;_&lt;</p>
<h2 id="11-user"><a href="#11-user" class="headerlink" title="11. user"></a>11. user</h2><p><strong>用户信息的存储</strong></p>
<hr>
<h1 id="2-删除账户"><a href="#2-删除账户" class="headerlink" title="2. 删除账户"></a>2. 删除账户</h1><h2 id="1-信息删除（不删除其做题数据）"><a href="#1-信息删除（不删除其做题数据）" class="headerlink" title="1.信息删除（不删除其做题数据）"></a>1.信息删除（不删除其做题数据）</h2><p>进到数据库<code>user</code>表里直节删除用户</p>
<p>该方法删除之后，用户在次用同样的用户id注册时，会自动连接到原来的数据；</p>
<p>比如：</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs c">开始存在了用户 A ，他做了一些题目<br>将他信息删除后，又重新注册了和用户 A 删除之前同样的用户id <br>那么，第二次注册的用户会获取 A 原本的数据，即 A 的所有做题数目<br></code></pre></td></tr></table></figure>



<h2 id="2-彻底删除（包括做题数据）"><a href="#2-彻底删除（包括做题数据）" class="headerlink" title="2.彻底删除（包括做题数据）"></a>2.彻底删除（包括做题数据）</h2><p>字面意思hhh</p>
<p>比如：</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs c">开始存在了用户 A ，他做了一些题目<br>将他信息删除后，又重新注册了和用户 A 删除之前同样的用户id <br>那么，第二次注册的用户，就是等同于白版，不会继承 A 的题目信息<br></code></pre></td></tr></table></figure>



<h1 id="3、删除步骤"><a href="#3、删除步骤" class="headerlink" title="3、删除步骤"></a>3、删除步骤</h1><p><strong>在删除之前一定要先进行该步骤</strong></p>
<p>要考虑到删除一个用户之后，题目的通过量，没通过量的数据的修改！！！！！</p>
<p>通过表<code>solution</code> 中的<code>pass_rate</code> 来得出用户对某个题目的通过与否？？，，<code>pass_rate==1.0</code>表示这道题目通过，由于题目统计只有通过和没通过，所以不必考虑没通过的原因</p>
<hr>
<p><strong>影响其他表中的删除：</strong></p>
<p>要先将 <strong>1</strong> 中的信息删除完，才能删除 <strong>4</strong> 中的</p>
<p>1： <code>compileinfo  和  runtimeinfo 和 source_code 和 source_code_user</code> 表中的<code>solution_id</code>要删除对应人的 “ 提交编号 ”（有点复杂，要找到对应人的提交编号）</p>
<p>4： <code>solution</code> 表中存储的所有通过与不通过的提交记录不要在第一个删除的前面，提前删除）</p>
<hr>
<p><strong>不影响其他表：</strong></p>
<p>2： <code>loginlog</code>表中的用户登录日志要 通过对应的<code>user_id</code> 删除(简单，不影响其他的删除，可以提前删除)</p>
<p>3： <code>privilege</code>表中的权限 通过对应的 <code>user_id</code> 删除（简单，不影响其他的删除，可以提前删除）</p>
<p> 5： <code>users</code> 表中的用户可以删除，（简单可以提前删除）</p>
<hr>
<h1 id="4、修改用户-id步骤"><a href="#4、修改用户-id步骤" class="headerlink" title="4、修改用户 id步骤"></a>4、修改用户 id步骤</h1><p><strong>注意修改语句写法</strong></p>
<p><code>loginlog</code>   、<code>privilege</code>  、<code>solution</code> 、<code>users</code> 表中的 <code>user_id</code></p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs sql"><span class="hljs-keyword">UPDATE</span> 上述表 <span class="hljs-keyword">SET</span> `user_id`<span class="hljs-operator">=</span>要修改的值 <span class="hljs-keyword">WHERE</span> `user_id`<span class="hljs-operator">=</span>要修改的用户;<br></code></pre></td></tr></table></figure>

<p><code>solution</code> 、<code>users</code> 表中的 <code>nick</code>  ： 这是 <strong>用户名</strong> 建议修改，否则会导致以前的名字修改过之后，不同名字对应同一个用户id</p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs sql"><span class="hljs-keyword">UPDATE</span> 上述表 <span class="hljs-keyword">SET</span> `nick`<span class="hljs-operator">=</span>要修改的值 <span class="hljs-keyword">WHERE</span> `user_id`<span class="hljs-operator">=</span>要修改的用户;<br></code></pre></td></tr></table></figure>




                
              </div>
            
            <hr/>
            <div>
              <div class="post-metas my-3">
  
    <div class="post-meta mr-3 d-flex align-items-center">
      <i class="iconfont icon-category"></i>
      

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/categories/oj/" class="category-chain-item">oj</a>
  
  

      </span>
    
  
</span>

    </div>
  
  
    <div class="post-meta">
      <i class="iconfont icon-tags"></i>
      
        <a href="/tags/mysql/" class="print-no-link">#mysql</a>
      
        <a href="/tags/sql/" class="print-no-link">#sql</a>
      
    </div>
  
</div>


              
  

  <div class="license-box my-3">
    <div class="license-title">
      <div>oj数据库名字总结</div>
      <div>https://one-and-one-fourth.gitee.io/2024/02/03/oj数据库名字总结/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>一又四分之一</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2024年2月3日</div>
        </div>
      
      
      
        <div class="license-meta-item">
          <div>许可协议</div>
          <div>
            
              
              
                <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
                  <span class="hint--top hint--rounded" aria-label="BY - 署名">
                    <i class="iconfont icon-by"></i>
                  </span>
                </a>
              
            
          </div>
        </div>
      
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2024/02/27/%E8%AE%B0%E4%BA%8B%E6%9C%AC%E6%89%93%E5%BC%80%E5%A4%A7%E5%86%85%E5%AD%98%E6%96%87%E4%BB%B6/" title="使用记事本打开大文本文件">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">使用记事本打开大文本文件</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2024/02/03/html%E8%A1%A5%E5%85%85/" title="html补充">
                        <span class="hidden-mobile">html补充</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar" style="margin-left: -1rem">
    <div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span>目录</span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>


    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
  </main>

  <footer>
    <div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
    </div>
  
  
    <div class="statistics">
  
  

  
    
      <span id="busuanzi_container_site_pv" style="display: none">
        总访问量 
        <span id="busuanzi_value_site_pv"></span>
         次
      </span>
    
    
      <span id="busuanzi_container_site_uv" style="display: none">
        总访客数 
        <span id="busuanzi_value_site_uv"></span>
         人
      </span>
    
    
  
</div>

  
  
  
</div>

  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.4/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>




  
    <script  src="/js/img-lazyload.js" ></script>
  




  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.20.1/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init(Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc));
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
      }
    });
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/js/local-search.js" ></script>

  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>





<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
